﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using QuickDev.Web.UI;
using QuickDev.Common.Utils;
using QuickDev.Localization;

namespace QuickDev.Web.App.Administration
{
    public partial class OverViewPage : AdminPage
    {
        #region Member Variables

        private string view;
        private string title;

        #endregion

        #region Page Events

        protected void Page_Load( object sender , EventArgs e )
        {
            view = Utility.GetParameter( "view" );
            title = LocalizationUtility.GetText( "titleOverview" );
            switch ( view )
            {
                case "si": //Site Settings
                    siteSettingsOverview.Visible = true;
                    this.Title = string.Format( WebUtility.MainTitleTemplate , Master.SiteSettings.SiteName , string.Format( title , LocalizationUtility.GetText( "pnlSiteOverview" ) ) );
                    break;
               
                //case "emp": //Security
                //    employee.Visible = true;
                //    this.Title = string.Format( WebUtility.MainTitleTemplate , Master.SiteSettings.SiteName , string.Format( title , LocalizationUtility.GetText( "pnlEmployee" ) ) );
                //    break;
                default:
                    lblNotDone.Visible = true;
                    this.Title = string.Format( WebUtility.MainTitleTemplate , Master.SiteSettings.SiteName , string.Format( title , LocalizationUtility.GetText( "lblNotDone" ) ) );
                    break;
            }
        }

        #endregion

    }
}
